package com.hbnu.service;

import com.hbnu.pojo.PageModel;
import com.hbnu.pojo.User;

import java.util.List;

/**
 * @author chendikai
 * @date 2024-11-06 上午 10:36
 */
public interface UserService {
    User findUserByStuCodeAndPassword(String stuCode, String password);

    List<User> findAllManager(String searchType, String keyword);

    void saveManager(User user, String[] dormBuildIds);

    User findById(int id);

    void updateManager(User user);

    List<User> findStudent(String dormBuildId, String searchType, String keyword, User user, PageModel pageModel);

    Integer findTotalNum(String dormBuildId, String searchType, String keyword, User user);

    void updateStudent(User user1);

    void saveStudent(User user2);

    User findByStuCode(String stuCode);

    User findByUserIdAndManager(Integer id, User user);

    User findStuCodeAndManager(String stuCode, User userCurr);

    void updatePassword(User user);
}
